package com.home.retrofit

import com.home.retrofit.bean.ElevatorListReturnBean
import com.home.retrofit.bean.LoginReturnBean
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST

interface WXXWApi {
    @POST("/rest/api/login")
    fun login(@Body body: RequestBody): Call<LoginReturnBean>
    //"app_login_tokens:6aee306db7344af28eb2b4f661afdb62"

    @POST("/rest/api/logout")
    fun logout(@Header("token") token:String): Call<LoginReturnBean>

    @POST("/rest/api/elevatorList")
    fun elevatorList(@Header("token") token:String): Call<ElevatorListReturnBean>
}